how to check that an exception is not thrown using mockito